package hist.mobilprogramming.tictactoeapplication;

import static org.junit.Assert.*;
import org.junit.Test;

public class UtilsTests
{

	@Test
	public void CalcMaxDim_ValidInputs_ReturnDimension()
	{
		int result = Utils.calcMaxDim(308, 32);
		
		assertEquals(9, result);
	}
	
	@Test
	public void CalcMaxDim_DivideByZero_ReturnZero()
	{
		int result = Utils.calcMaxDim(1, 0);
		
		assertEquals(0, result);
	}
}
